package service;

import dao.BaseDao;
import dao.CardDao;
import entity.Card;

import java.util.List;

public class CardService{
    CardDao cardDao = new CardDao();

    public List<Card> cardList(){
        return cardDao.cardList();
    }

    public Boolean cardSelectIdNumber(String idNumber){
        return cardDao.cardSelectIdNumber(idNumber);
    }

    public int cardAdd(Card card){
        return cardDao.cardAdd(card);
    }

    public int cardUpdate(int status,int id){
        return cardDao.cardUpdate(status,id);
    }
}
